typeof 123 // number
typeof '123' //string
typeof false

function f() {

}
typeof f // 'function'

if (typeof v === "undefined") {
    console.log("v");
}

typeof window
typeof {}
typeof []

var o = {};
var a = [];
o instanceof Array
a instanceof Array

typeof null

